<?php if (!defined('THINK_PATH')) exit();?>
<!doctype html>
<html>
<head>
<?php global $_G; ?>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title><?php if(isset($selftitle)) echo $selftitle . ' | '; if(isset($_G['seo']['webtitle']))echo $_G['seo']['webtitle']; ?></title>
<meta name="keywords" content="<?php if(isset($_G['seo']['webkeywords']))echo $_G['seo']['webkeywords']; ?>" />
<meta name="description" content="<?php if(isset($selfdescription)){echo $selfdescription;} else {if(isset($_G['seo']['webdescription']))echo $_G['seo']['webdescription'];} ?>" />
<meta name="generator" content="<?php if(isset($_G['seo']['webauthor']))echo $_G['seo']['webauthor']; ?>" />
<meta name="author" content="<?php if(isset($_G['seo']['webauthor']))echo $_G['seo']['webauthor']; ?>" />
<meta name="robots" content="all" />
<meta name="copyright" content="<?php if(isset($_G['seo']['copyright']))echo $_G['seo']['copyright']; ?>" />


<!-- 引入需要的css和js -->
<link href="<?php echo MY_CDN; ?>/mobile/css/common.css" rel="stylesheet" />
<script type="text/javascript">
var Y = {
	'_CDN_' : '<?php echo MY_CDN; ?>',
	'_ROOT_' : '__ROOT__',
	'_APP_' : '__APP__',
	'_MID_' : '<?php if(isset($_G['mid'])) echo $_G['mid']; else echo '-1'; ?>',
	'_OID_' : '<?php if(isset($_G['oid'])) echo $_G['oid']; else echo '-1'; ?>'
};
</script>

<!-- mobile page -->
<style type="text/css" rel="stylesheet">
.page{clear:both; margin:2px 0 2px 0; padding:0 0 0 10px; text-align:left}
.page a,.page a:visited{margin-right:3px; padding:3px;line-height:26px;text-decoration:none;background-color:#F6F6F6;border:1px solid #D7D7D7;color:#333333;font-size:12px;}
.page a:hover {border: 1px solid #4F4B2D;color: #033D5A;background-color: #E4EFF5;text-decoration:none;}
.page a:active{}
.page span.current {font-weight: bold;color: #000;margin-right: 3px;padding:2px}
.page span.disabled{color: #333;margin-right: 3px;padding: 2px}
.page span.quantity{color: #333;margin-right: 3px;padding: 2px}
</style>
</head>
<body>
<!-- nav -->
<div class="y-nav">
	<div class="y-nav-left y-pullLeft">
		<a href="/" class="y-icon y-icon-white y-icon-th-large"></a>
		<a href="/"><?php if(isset($_G['seo']['webname']))echo $_G['seo']['webname']; ?></a>
	</div>
	<!--
	<div class="y-nav-right y-pullRight">
		<a href="">登录</a>
		<a href="">注册</a>
	</div>
	-->
</div><div class="y-clear"></div><div class="y-ieFixedPropertyBug"></div>

<!-- // nav -->
<!-- category -->
<div class="y-category">
	<ul>
		<li><a href="__ROOT__/" <?php if(MODULE_NAME == 'Index') echo 'class="y-category-active"'; ?>>Home</a></li>
		<li><a href="<?php echo y_u('MobileArticle');?>" <?php if(MODULE_NAME == 'MobileArticle') echo 'class="y-category-active"'; ?>>文字控</a></li>
		<li><a href="<?php echo y_u('Classify/index/tid/1');?>" <?php if(MODULE_NAME == 'Classify' && '1' == $_GET['tid']) echo 'class="y-category-active"'; ?>>技术宅</a></li>
		<li><a href="<?php echo y_u('Classify/index/tid/6');?>" <?php if(MODULE_NAME == 'Classify' && '6' == $_GET['tid']) echo 'class="y-category-active"'; ?>>福利酱</a></li>
	</ul>
	<div class="y-clearL"></div>
</div>
<!-- // category -->
	
	<!-- item -->
	<div class="y-wrapper">
<?php if(is_array($data)): foreach($data as $key=>$val): ?><div class="y-item">
	<div class="y-item-img y-pullLeft">
		<img src="<?php echo y_viewImage($val['viewimage']);?>" width="120" height="80"/>
	</div>
	<div class="y-item-info">
		<h2><span class="y-time y-pullRight"><?php echo date('m/d', $val['posttime']);?></span><?php echo ($val['title']); ?></h2>
		<div class="y-item-desc">
		<?php echo ($val['description']); ?>
		</div>
	</div>
	<div class="y-clearL"></div>
</div><?php endforeach; endif; ?>

<div class="page">
<?php echo ($pageString); ?>
</div>
	</div>
	<!-- item -->
	
<!-- footer -->
<div class="y-blankBar"></div>
<div class="y-footer">
	<a href="/">触屏版</a>&nbsp;|&nbsp;<a href="/">电脑版</a>
</div>
<!-- // footer -->
</body>
</html>